<?php

class Empeval_Methods_Data_Competance {
	
	public $id;
	public $name;
	public $lastModified;
	public $created;
	/**
	 *
	 * @var Empeval_Methods_Data_BonusPeriod
	 */
	public $behavioralIndicators = array();
	
	public function __construct(EmpevalCompetance $c) {
		$this->id = $c->getId();
		$this->name = $c->getName();
		$this->lastModified = $c->getLastModified();
		$this->created = $c->getCreated();
		foreach ($c->getBehavioralIndicatorss() as $bi)
			$this->behavioralIndicators[] = new Empeval_Methods_Data_BehavioralIndicator($bi);
	}
	
}